package com.ljy.my_study.book.tom.软件架构设计原则.依赖倒置原则;

public class DIPTestMain {

    /**
     * 依赖倒置原则
     * @param args
     */
    public static void main(String[] args) {
        ICourse javaCourse=new JavaCourse();
        Student student=new Student();
        student.setCourse(javaCourse);
        student.study();
        ICourse pythonCourse=new PythonCourse();
        student.setCourse(pythonCourse);
        student.study();
    }
}
